package com.djx.service;

import com.djx.ES.SysUser;
import com.djx.entity.User;
import org.springframework.web.bind.annotation.GetMapping;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface UserService {
    List<User> findAll();

    public Boolean createIndex();

    //删除索引
    public Boolean deleteIndex();

    Boolean exit(String index);

    void importES();

    void deleteAll();

    void save();

    void delete();

    Map<String, Object> queryAll();

    public List<Map<String, Object>> queryPage(Integer pageNo, Integer pageSize, String keywords) throws IOException;

    List<Map<String, Object>> searchHeight(Integer pageNo, Integer pageSize, String keywords) throws IOException ;
}

